package com.uum.blog.api;

import com.uum.blog.api.fallback.BlogFeignFallbackClient;
import com.uum.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "uum-blog",contextId = "blog",fallback = BlogFeignFallbackClient.class)
public interface BlogFeignClient {

    @PutMapping("/api/v1/blog/updateAuthorName")
    Result updateAuthorName(@RequestParam("userId") Long userId, @RequestParam("nickname") String nickname);
}
